<template>
    <p>混合式Api子组件</p>
    <p>props</p>
    <p>foo:{{ foo }}</p>
    <p>age:{{ age }}</p>
</template>

<script setup>
    const props = defineProps(['foo','age'])

    console.log(props.foo)
    console.log(props.age)
</script>